#ifndef _HAL_LEDS_H_
#define _HAL_LEDS_H_

#define PORT_LED 			(2)
#define LED_ONOFF 			(1<<0)
#define LED_WATER_HEATING 	(1<<1)
#define LED_ALLOY_HEATING 	(1<<2)
#define LED_WATER_ADJTEMP 	(1<<3)
#define LED_WATER_ADJALLOY 	(1<<4)

#define GROUP_LED 			(LED_ONOFF|LED_WATER_HEATING|LED_ALLOY_HEATING|LED_WATER_ADJTEMP|LED_WATER_ADJALLOY)

#define LED_ONOFF_ACTIVE	GPIO_SetValue(PORT_LED,LED_ONOFF)
#define LED_ONOFF_DEACTIVE	GPIO_ClearValue(PORT_LED,LED_ONOFF)

#define LED_WATER_HEATING_ACTIVE	GPIO_SetValue(PORT_LED,LED_WATER_HEATING)
#define LED_WATER_HEATING_DEACTIVE	GPIO_ClearValue(PORT_LED,LED_WATER_HEATING)

#define LED_ALLOY_HEATING_ACTIVE	GPIO_SetValue(PORT_LED,LED_ALLOY_HEATING)
#define LED_ALLOY_HEATING_DEACTIVE	GPIO_ClearValue(PORT_LED,LED_ALLOY_HEATING)

#define LED_ALLOY_HEATING_ACTIVE	GPIO_SetValue(PORT_LED,LED_ALLOY_HEATING)
#define LED_ALLOY_HEATING_DEACTIVE	GPIO_ClearValue(PORT_LED,LED_ALLOY_HEATING)

#define LED_WATER_ADJTEMP_ACTIVE	GPIO_SetValue(PORT_LED,LED_WATER_ADJTEMP)
#define LED_WATER_ADJTEMP_DEACTIVE	GPIO_ClearValue(PORT_LED,LED_WATER_ADJTEMP)

#define LED_WATER_ADJALLOY_ACTIVE	GPIO_SetValue(PORT_LED,LED_WATER_ADJALLOY)
#define LED_WATER_ADJALLOY_DEACTIVE	GPIO_ClearValue(PORT_LED,LED_WATER_ADJALLOY)

void hal_leds_init (void);


#endif
